package com.hframe.http.client;

import java.net.HttpURLConnection;

/**
 * Created by heqian on 12/6/16.
 */

public interface Success {
    void setHttpClient(HttpClients client);

    void start(HttpURLConnection connection) throws Exception;

    void finish(HttpURLConnection connection) throws Exception;

    boolean onDownload(Progress.DataItem data, HttpURLConnection connection) throws Exception;
}
